#coding:utf-8
from mri import*
from DataUtil import*
from FileHelper import*

d0 = r'F:\PaperCode\lw\result\original\Case00_result.mhd'
d1 = r'F:\PaperCode\lw\result\3^3\Case00_result.mhd'


# data0 = MRI(d0)
# data1 = MRI(d1)
# data0.displayZ(10)
# data1.displayZ(10)
# print Evaluator.Dice(data0,data1)
# print Evaluator.Recall(data0,data1)
# print Evaluator.Precision(data0,data1)
# print Evaluator.c2all(data1,data0)#计算出准确度，精度，召回率，F1值

f = r'F:\PaperCode\lw\result\f_r\label\7.npy'
a= np.load(f)[12]
x,y = a.shape
for i in range(x/4,x*3/4):
    for j in range(y/4,y*3/4):
        print a[i,j]

